import {get,post} from "../../utils/request"
interface IList{
    roleid:number,
    page:number
    psize:number
}
// 列表
const list = (params:IList)=>{
    return get("role/list",params)
}
// 删除
const dele = (params:any)=>{
    return get("role/delete",params)
}
// 数据列表
const dataList = (params:any)=>{
    return get("menu/list",params)
}
// 添加角色权限
const addRole = (params:any)=>{
    return post("role/add",params)
}
export {list,dele,dataList,addRole}